package com.ht.impl.shape;

import com.mxgraph.canvas.mxGraphics2DCanvas;

/**
 * Created by IntelliJ IDEA.
 *
 * @author Dong Shufeng
 *         Date: 2010-6-18
 */
public class ShapeRegister {
    public static final String SHAPE_CELLARRAY = "htShapeArray";
    public static final String SHAPE_ARC = "htShapeArc";
    public static final String SHAPE_CONTOUR = "htShapeContour";
    //
    public static final String SHAPE_HTPOWERPLANT = "htPowerPlant";
    public static final String SHAPE_HTTRANSFORMERSUBSTATION = "htTransformerSubstation";

    public static void register() {
        mxGraphics2DCanvas.putShape(SHAPE_CELLARRAY, new htShapeArray());
        mxGraphics2DCanvas.putShape(SHAPE_ARC, new htArcShape());
        mxGraphics2DCanvas.putShape(SHAPE_CONTOUR, new htContourShape());
     //
        mxGraphics2DCanvas.putShape(SHAPE_HTPOWERPLANT, new htPowerPlant());
        mxGraphics2DCanvas.putShape(SHAPE_HTTRANSFORMERSUBSTATION, new htTransformerSubstation());
    }
}
